<script>on mouseUpset the itemdelimiter to "/"put fractions(A,item 1 of cd fld 3,item 2 of cd fld 3, item 1 of cd fld 4, item 2 of cd fld 4)end mouseUp</script>
</part>
<part>
<id>7</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>141</left>
<top>262</top>
<right>241</right>
<bottom>284</bottom>
</rect>
<style>roundrect</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>Substract</name>
<script>on mouseUpset the itemdelimiter to "/"put fractions("S",item 1 of cd fld 3,item 2 of cd fld 3, item 1 of cd fld 4, item 2 of cd fld 4)end mouseUp</script>
</part>
<part>
<id>8</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>241</left>
<top>240</top>
<right>341</right>
<bottom>262</bottom>
</rect>
<style>roundrect</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>Multiply</name>
<script>on mouseUpset the itemdelimiter to "/"put Fractions("M",item 1 of cd fld 3,item 2 of cd fld 3, item 1 of cd fld 4, item 2 of cd fld 4)end mouseUp</script>
</part>
<part>
<id>9</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>241</left>
<top>262</top>
<right>341</right>
<bottom>284</bottom>
</rect>
<style>roundrect</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>Divide</name>
<script>on mouseUpset the itemdelimiter to "/"put Fractions("D",item 1 of cd fld 3,item 2 of cd fld 3, item 1 of cd fld 4, item 2 of cd fld 4)end mouseUp</script>
</part>
<content>
<layer>card</layer>
<id>1</id>
<text>Fractions 2.0 by Olivier Cinquin</text>
</content>
<content>
<layer>card</layer>
<id>3</id>
<text><span class="style2">his stack contains one XFCN:- </span><span class="style3">Fractions</span><span class="style2"> (TypeOfOperation,a,b,c,d): it returns a fraction. A is the numerator of the first fraction, b its denominator, c the numerator of the second fraction, and d its denominator. TypeOfOperation can be: - "</span><span class="style4">A</span><span class="style2">" if you want to add the two fractions - "</span><span class="style4">S</span><span class="style2">" if you want to substract the two fractions - "</span><span class="style4">M</span><span class="style2">" if you want to multiply the two fractions - "</span><span class="style4">D</span><span class="style2">" if you want to divide the two fractions - "</span><span class="style4">P</span><span class="style2">" if you want to get the least common multiple of two numbers (in this case, only the first three parametres are taken into account).Careful! Capital letters are taken into account! "</span><span class="style4">a</span><span class="style2">" won't work!The XFCN is able to simplify fractions as well (to use it for this, add your fraction to 0/1).NB: Fractions obviously won't work with non-integer numbers!Version 1.1 takes minus signs into account and behaves properly when you pass 0 as a denominator.Version 2.0 is much more powerful than previous ones; it can handle prime numbers up to 997 (in versions 1 and 1.1, this was limited to 11; you couldn't do operations with numbers which could not be decomposed into the first 5 prime numbers).----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------This program is freeware: you may (and I'd like you to do so!) distribute it to anyone, as long as you do so for free. I'd only like you to send me a post-card if you decide to use it. However, if you use Fractions in any commercial or shareware stack, </span><span class="style4">you must first contact me to get a license</span><span class="style2">. My mail address is:Olivier Cinquin16, rue de Strasbourg38 000 GRENOBLEFRANCE.If you have any comments or suggestions please send them to me at the above address or email me at " ocinquin@timb.imag.fr " on the Internet.</span></text>